package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

/**
 * 单位管理
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("lm_units_manager")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class UnitsManagerModel {
    @TableId(type = IdType.AUTO)
    private Integer id; //单位管理表ID
    private String name;//单位名称
    private String roleName;//单位身份
    private Integer sort;//排序
    private Integer status;//状态
    private Integer del;// 删除
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp updateTime;
}
